package com.ruoyi.questionnaire.domain;

import java.util.Date;

/**
 * 问卷实体类
 * 
 * 用于存储问卷的基本信息，包括标题、描述、状态等
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class Questionnaire {
    /** 问卷ID，主键 */
    private Long id;
    
    /** 问卷标题 */
    private String title;
    
    /** 问卷描述 */
    private String description;
    
    /** 问卷状态：draft(草稿)、published(已发布)、closed(已关闭) */
    private String status;
    
    /** 创建人 */
    private String createBy;
    
    /** 创建时间 */
    private Date createTime;
    
    /** 更新人 */
    private String updateBy;
    
    /** 更新时间 */
    private Date updateTime;
    
    /** 题目数量（统计字段，不存储在数据库中） */
    private Integer questionCount;
    
    /** 答卷数量（统计字段，不存储在数据库中） */
    private Integer answerCount;

    // ==================== Getter/Setter 方法 ====================
    
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    
    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }
    
    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
    
    public String getStatus() { return status; }
    public void setStatus(String status) { this.status = status; }
    
    public String getCreateBy() { return createBy; }
    public void setCreateBy(String createBy) { this.createBy = createBy; }
    
    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }
    
    public String getUpdateBy() { return updateBy; }
    public void setUpdateBy(String updateBy) { this.updateBy = updateBy; }
    
    public Date getUpdateTime() { return updateTime; }
    public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
    
    public Integer getQuestionCount() { return questionCount; }
    public void setQuestionCount(Integer questionCount) { this.questionCount = questionCount; }
    
    public Integer getAnswerCount() { return answerCount; }
    public void setAnswerCount(Integer answerCount) { this.answerCount = answerCount; }
} 